<template>
  <div>
    <el-row class="tac">
      <el-menu default-active="2"
               class="el-menu-vertical-demo"
               @open="handleOpen"
               @close="handleClose"
               background-color="#545c64"
               text-color="#fff"
               active-text-color="#ffd04b">
        <el-menu-item index="1"
                      @click="goPage('')">
          <i class="el-icon-menu"></i>
          <span slot="title">个人信息</span>
        </el-menu-item>
        <el-submenu index="2">
          <template slot="title">
            <i class="el-icon-location"></i>
            <span>安全管理</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="2-1"
                          @click="goPage('Iphone')">手机管理</el-menu-item>
            <el-menu-item index="2-2"
                          @click="goPage('Email')">邮箱管理</el-menu-item>
            <el-menu-item index="2-3"
                          @click="goPage('Password')">登录密码管理</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-menu-item index="4"
                      @click="goPage('Vip')">
          <i class="el-icon-menu"></i>
          <span slot="title">我的积分</span>
        </el-menu-item>

        <el-menu-item index="5"
                      @click="goPage('Order')">
          <i class="el-icon-menu"></i>
          <span slot="title">我的订单</span>
        </el-menu-item>
        <!-- <el-menu-item index="6" @click="goPage('Collection')">
          <i class="el-icon-menu"></i>
          <span slot="title">我的收藏</span>
        </el-menu-item> -->
        <el-submenu index="7"
                    @click="goPage('Money')">
          <template slot="title">
            <i class="el-icon-location"></i>
            <span>我的钱包</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="7-1"
                          @click="goPage('Balance')">资金管理</el-menu-item>
            <el-menu-item index="7-2"
                          @click="goPage('Payment')">开支明细</el-menu-item>

          </el-menu-item-group>
        </el-submenu>
        <el-menu-item index="8"
                      @click="goPage('Evaluation')">
          <i class="el-icon-menu"></i>
          <span slot="title">我的评价</span>
        </el-menu-item>
        <el-menu-item index="9"
                      @click="goPage('Service')">
          <i class="el-icon-menu"></i>
          <span slot="title">客户服务</span>
        </el-menu-item>
        <el-menu-item index="10"
                      @click="goPage('Passenger')">
          <i class="el-icon-menu"></i>
          <span slot="title">旅客管理</span>
        </el-menu-item>
        <!-- <el-submenu index="11">
          <template slot="title">
            <i class="el-icon-location"></i>
            <span>财务管理</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="11-1" @click="goPage('AccountEcharts')"
              >财务报表</el-menu-item
            >
            <el-menu-item index="11-9" @click="goPage('AccountEcharts1')"
              >财务流水报表</el-menu-item
            >
            <el-menu-item index="11-2" @click="goPage('Account')"
              >公司流水记录</el-menu-item
            >
            <el-menu-item index="11-3" @click="goPage('Refund')"
              >退款记录</el-menu-item
            >
            <el-menu-item index="11-4" @click="goPage('FinallyOrder')"
              >最终订单</el-menu-item
            >
            <el-menu-item index="11-5" @click="goPage('CompanyAccountFunds')"
              >公司账户信息表</el-menu-item
            >
            <el-menu-item index="11-6" @click="goPage('Bank')"
              >银行表</el-menu-item
            >
            <el-menu-item index="11-7" @click="goPage('ApprovedMemo')"
              >产品审核记录表</el-menu-item
            >
            <el-menu-item index="11-8" @click="goPage('PushLevel')"
              >等级推送表</el-menu-item
            >
          </el-menu-item-group> -->
        <!-- </el-submenu> -->
      </el-menu>
    </el-row>
  </div>
</template>

<script>
export default {
  data () {
    return {
      data: [
        {
          label: "账户安全",
          children: [
            {
              label: "二级 1-1",
              children: [
                {
                  label: "三级 1-1-1",
                },
              ],
            },
          ],
        },
      ],
      defaultProps: {
        children: "children",
        label: "label",
      },
    };
  },
  methods: {
    handleOpen (key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose (key, keyPath) {
      console.log(key, keyPath);
    },
    goPage (link) {
      this.$router.push("/User/" + link).catch((error) => error);
      // his.$router.push(path);
    },
    handleNodeClick (data) {
      console.log(data);
    },
  },
};
</script>

<style>
.el-header,
.el-footer {
  background-color: #ffa07a;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-menu-demo {
  margin-left: 1300px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 500px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
/*
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
  margin-top: 260px;
}
*/

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>